package com.lucaswangdev.constant.common;

import lombok.Data;

@Data
public class PagingInfo extends BaseDTO {
    private static final long serialVersionUID = -3781308495415311536L;

    private Integer currentPage;

    private Integer pageSize;

    private Integer totalCount;

    public int getTotalPage(){
        return totalCount % pageSize == 0 ? totalCount / pageSize : (totalCount / pageSize + 1);
    }


}
